package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.ArticleComment;
import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ArticleCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ArticleComment record);

    ArticleComment selectByPrimaryKey(Long id);

    List<ArticleComment> selectAll();

    int updateByPrimaryKey(ArticleComment record);
    /**
     * 查询指定游记下的评论的集合,可用分页
     * @param qo
     * @return
     */
    List<ArticleComment> queryForComments(TravelCommendQueryObject qo);
    /**
     * 保存文章下的评论
     * @param articleComment
     */
    void saveArticleComment(ArticleComment articleComment);

    List<ArticleComment> queryCommentsByArticleId(TravelCommendQueryObject childer);

    List<ArticleComment> selectForCommendById(TravelCommendQueryObject queryObject);
}